<?php
$page_type = '{page_type}';
ob_start();
$_d = getcwd();
if ($page_type == 'category')
{
	$_GET['p'] = $_POST['p'] = 'index';
	$_GET['cid'] = $_POST['cid'] = '{cid}';
	chdir('../');
	include('index.php');
}
else
{
	
}
$out = ob_get_contents();
chdir($_d);
if (file_exists('index.html')) unlink('index.html');
file_put_contents('index.html',$out);
ob_end_flush();
?>